import React, {PureComponent} from 'react'
import '../../css/standard.scss'
import '../../css/base-standand-chart.scss'
import {connect} from 'react-redux'
import {getCheckRate} from '../action/map.action'
import CheckDaily from '../component/check/check-daily';
import CheckMonth from '../component/check/check-month';

class OnceStandard extends PureComponent {
    componentDidMount() {
        const {dispatch} = this.props
        dispatch(getCheckRate({type: 'day'}))
        dispatch(getCheckRate({type: 'month'}))
    }

    render() {
        return (
            <div>
                <div className="full-container">
                    <div className="standard-chart">
                        <CheckDaily/>
                    </div>
                    <div className="standard-chart">
                        <CheckMonth/>
                    </div>
                </div>
            </div>
        )
    }

}

function mapStoreToProps({}) {
    return {}
}

export default connect(mapStoreToProps)(OnceStandard)